return 0

num = int(input())
print (max_prime_number(num))
